
#ifndef _SERIAL_
#define _SERIAL_

#include <unistd.h>
#include <stdint.h>

class Serial
{
	public:
		int fd;
		bool is_connected;
		
		Serial();
		~Serial();
		
		int Open(const char * device);
		int Read(uint8_t * data);
		void Write(uint8_t data);
		void Close(); 
		bool IsConnected();
		
};


#endif
